package com.realtyreg.service.form;

import com.realtyreg.service.validator.FieldMatch;

import javax.validation.constraints.Size;

/**
 * Форма установки/изменения пароля
 * Created by Petro 15.12.12 18:12
 */
@FieldMatch.List({
        @FieldMatch(first = "newPassword", second = "confirmPassword", message = "{FieldMatch.password}")
})
public class PasswordForm {
    @Size(min=4, max=20)
    private String newPassword;

    @Size(min=4, max=20)
    private String confirmPassword;

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }

    public String getConfirmPassword() {
        return confirmPassword;
    }

    public void setConfirmPassword(String confirmPassword) {
        this.confirmPassword = confirmPassword;
    }
}
